/*
 * File:       eg_map.h
 * Created on: Sept 3
 * Purpose:    Contains functions for loading and validating maps from .egm files
 */

/*
 Copyright 2009 James Youngquist, Colin Scott.

 This file is part of ElectroGladiator.  ElectroGladiator is free
 software: you can redistribute it and/or modify it under the terms
 of the GNU General Public License as published by  the Free
 Software Foundation, either version 3 of the License, or (at your
 option) any later version.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef EG_MAP_H_
#define EG_MAP_H_ 1


/*  Read in map text file with pre-specified format.
 *  Store the data in the map struct.
 */
void readin_map(char *filename, Map *map);


/*  Returns 1 if the map is valid (contains no intersecting lines).
 *  Else, returns 0
 */
int validate_map (Map *map);

#endif
